package com.littcore.saap.core.module.message.meta;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;


/**
 * .
 * 
 * <pre><b>描述：</b>
 *    
 * </pre>
 * 
 * <pre><b>修改记录：</b>
 *    
 * </pre>
 * 
 * @author <a href="mailto:littcai@hotmail.com">蔡源</a>
 * @since 2015年10月28日
 * @version 1.0
 */
public class MessageMeta implements Serializable {
  
  /** The Constant serialVersionUID. */
  private static final long serialVersionUID = 1L;

  private String code;
  
  /** 是否可编辑. */
  private boolean editable;
  
  /** 默认选中通道(用逗号分隔). */
  private String[] checkedChannels;
  
  /**
   * @return the code
   */
  public String getCode()
  {
    return code;
  }

  
  /**
   * @param code the code to set
   */
  public void setCode(String code)
  {
    this.code = code;
  }
  
  /**
   * @return the editable
   */
  public boolean isEditable()
  {
    return editable;
  }


  
  /**
   * @param editable the editable to set
   */
  public void setEditable(boolean editable)
  {
    this.editable = editable;
  }


  
  /**
   * @return the checkedChannels
   */
  public String[] getCheckedChannels()
  {
    return checkedChannels;
  }
  
  /**
   * @param checkedChannels the checkedChannels to set
   */
  public void setCheckedChannels(String[] checkedChannels)
  {
    this.checkedChannels = checkedChannels;
  }


  /* (non-Javadoc)
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString()
  {
    StringBuilder builder = new StringBuilder();
    builder.append("MessageMeta [code=").append(code).append(", editable=").append(editable).append(", checkedChannels=").append(Arrays.toString(checkedChannels)).append("]");
    return builder.toString();
  }



}
